package com.example.demo.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class TestController {


    @GetMapping("/test")
    public String test(@RequestParam(name = "a", required = false)  String a,
                       @RequestParam(name = "page", defaultValue = "1") Integer page,
                       @RequestParam(name = "pageSize", defaultValue = "50") Integer pageSize) {
        return String.format("%s%s%s", a, page, pageSize);
    }
}
